#ifndef ITEM_H
#define ITEM_H

#include <QGraphicsItem>

class Item : public QGraphicsItem
{

public:
    Item(){


    }
    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    void set(short b[50][50]){
        for(short i=0; i<x;++i ){
            for(short j=0; j<x; ++j){
                board[i][j] = b[i][j];

            }
        }
    }

    private:
    short board[50][50];
    static const int x = 50;

};

#endif // ITEM_H
